package com.example.mvpdemo.retrofit;

/**
 * @auth: njb
 * @date: 2022/11/28 21:45
 * @desc:
 */
public class HttpResult <T>{
    /**
     * 记录网络请求回来的状态
     */
    private boolean success;
    /**
     * 记录请求回来的状态描述
     */
    private String message;
    /**
     * 记录请求回来的错误状态描述
     */
    private String code = "";

    /**
     * 记录返回的数据
     */
    private T result;
    /**
     * 记录返回的数据
     */
    private String content;

    public boolean getSuccess() {
        return success;
    }
    public void setSuccess(boolean success) {
        this.success = success;
    }
    public String getMessage() {
        return message;
    }
    public void setMessage(String message) {
        this.message = message;
    }
    public T getData() {
        return result;
    }
    public void setData(T data) {
        this.result = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
